//
//  QuoteCell.m
//  FreeTime
//
//  Created by ti on 16/8/30.
//  Copyright © 2016年 SRDZ.com. All rights reserved.
//

#import "QuoteCell.h"
#import "Header.h"
@interface QuoteCell (){
    
    UIImageView * iconImg, *sexImg;
    UILabel * nameLbl, *timeLbl,*contentLbl,*processLbl;
    UIButton * stautBtn1,*stautBtn2;
}

@end
@implementation QuoteCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        iconImg = [ReduceCode creatImageVeiwWithFrame:CGRectMake(10, 15, 47, 47) imageName:@"123" isCorner:YES];
        [self.contentView addSubview:iconImg];
        
        sexImg = [ReduceCode creatImageVeiwWithFrame:CGRectMake(CGRectGetMaxX(iconImg.frame)+10, 26, 10, 10) imageName:@"nvsheng" isCorner:NO];
        [self.contentView addSubview:sexImg];
        
        CGFloat w = [ToolUtil autoWidth:@"你想静一静 21" width:0 height:10 num:12];
        nameLbl = [ReduceCode creatLabelWithFrame:CGRectMake(CGRectGetMaxX(sexImg.frame)+5, sexImg.frame.origin.y, w, 10) title:@"你想静一静 21" titleColor:[ImageUtil colorWithRgb:0x666666] font:12 textAlignment:0];
        [self.contentView addSubview:nameLbl];
        //        NSArray * contentArr = @[@"ID: 210303",@"时薪:200/小时"];
        //        CGFloat y = 0;
        NSString * str = [NSString stringWithFormat:@"对TA报价: 8888"];
        contentLbl = [ReduceCode creatLabelWithFrame:CGRectMake(sexImg.frame.origin.x, CGRectGetMaxY(sexImg.frame)+5, 100, 11) title:str titleColor:[ImageUtil colorWithRgb:0x666666] font:11 textAlignment:0];
//        contentLbl.numberOfLines = 0;
        [self.contentView addSubview:contentLbl];
        CGFloat w1 = [ToolUtil autoWidth:@"2016-07-08" width:0 height:10 num:9];
        timeLbl = [ReduceCode creatLabelWithFrame:CGRectMake(WindowWidth-w1-10, 16, w1, 10) title:@"2016-01-08" titleColor:[ImageUtil colorWithRgb:0xb3b3b3] font:9 textAlignment:0];
        [self.contentView addSubview:timeLbl];
        
        processLbl = [ReduceCode creatLabelWithFrame:CGRectMake(WindowWidth-w1-10, CGRectGetMaxY(timeLbl.frame)+15, w1, 12) title:@"处理中" titleColor:HOME_COLOR font:12 textAlignment:2];
        [self.contentView addSubview:processLbl];
    
        [ToolUtil createLine:CGRectGetMaxY(iconImg.frame)+15 superView:self.contentView lift:10 width:WindowWidth-20 hight:1 color:[ImageUtil colorWithRgb:0xe6e6e6]];
        
        
    }
    return self;
}


@end
